package com.chenyue.cm.live.service.impl;


import com.chenyue.cm.base.dao.LcBaseMapper;
import com.chenyue.cm.base.service.BaseServiceImpl;
import com.chenyue.cm.live.dao.JdLiveAgreeMapper;
import com.chenyue.cm.live.domain.JdLiveAgree;
import com.chenyue.cm.live.service.JdLiveAgreeService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;


/**
 * @author chenyue-cm
 */
@Service(value = "JdLiveAgreeService")
public class JdLiveAgreeServiceImpl extends BaseServiceImpl<JdLiveAgree> implements JdLiveAgreeService {

    private final JdLiveAgreeMapper jdLiveAgreeMapper;

    public JdLiveAgreeServiceImpl(@Qualifier("jdLiveAgreeMapper") JdLiveAgreeMapper jdLiveAgreeMapper) {
        this.jdLiveAgreeMapper = jdLiveAgreeMapper;
    }

    @Override
    @Resource(name = "jdLiveAgreeMapper")
    public void setBaseMapper(LcBaseMapper<JdLiveAgree, Serializable> baseMapper) {
        this.baseMapper = baseMapper;
    }

    @Override
    public void delete(Integer id) {
        jdLiveAgreeMapper.deleteById(id);
    }
}
